package com.ys.erp.stage_mall_service.bean.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ys.erp.common.util.DateUtil;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * @author lwj
 * @date 2025/5/19
 */
@Data
@Schema(description = "到店付订单返款统计返回对象")
public class ToShopOrderRefundStatVO {

    @Schema(description = "订单总额")
    private String orderTotalMoney;

    @Schema(description = "销售总额")
    private String saleTotalMoney;

    @Schema(description = " 到店订单应返款总额")
    private String toShopOrderMoney;

    @Schema(description = "店铺信息集")
    private List<ShopVO> shopList = new ArrayList<>();

    @Data
    @Schema(description = "店铺返回对象")
    public static class ShopVO {

        @Schema(description = "到店名字")
        private String toShopName;

        @Schema(description = "到点订单信息集")
        private List<ToShopOrderVO> toShopOrderList = new ArrayList<>();

    }

    @Data
    @Schema(description = "到店付订单统计返回对象")
    public static class ToShopOrderVO {

        @Schema(description = "订单编号")
        private String orderNo;

        @Schema(description = "订单总额")
        private String totalMoney;

        @Schema(description = "微信支付金额")
        private String wxMoney;

        @Schema(description = "幺币支付金额")
        private String ysMoney;

        @Schema(description = "下单时间")
        @JsonFormat(pattern = DateUtil.TIME_FORMAT, timezone = "GMT+8")
        private LocalDateTime orderTime;

        @Schema(description = "微信返款金额")
        private String wxReturnMoney;

        @Schema(description = "幺币返款金额")
        private String ysReturnMoney;

        @Schema(description = "微信比例")
        private String wxRatio;

        @Schema(description = "幺币比例")
        private String ysRatio;

        @Schema(description = "返款总额")
        private String returnTotalMoney;

    }

}
